package com.nanhai.buddhist.college.module.collegebase.controller.admin.textbookinfo.info.vo;

import lombok.*;
import java.util.*;
import io.swagger.annotations.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static com.nanhai.buddhist.college.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
* 教材列表 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class TextbookInfoBaseVO {

    @ApiModelProperty(value = "类型id", required = true)
    @NotNull(message = "类型id不能为空")
    private String typeId;

    @ApiModelProperty(value = "教材昵称", required = true)
    @NotNull(message = "教材昵称不能为空")
    private String textbookName;

    @ApiModelProperty(value = "适用层次", required = true)
    @NotNull(message = "适用层次不能为空")
    private String hierarchy;

    @ApiModelProperty(value = "是否公开", required = true)
    @NotNull(message = "是否公开不能为空")
    private Integer open;

    @ApiModelProperty(value = "发版时间", required = true)
    @NotNull(message = "发版时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date publicationTime;

    @ApiModelProperty(value = "LOGO 图片", required = true)
    @NotNull(message = "LOGO 图片不能为空")
    private String logoImage;

    @ApiModelProperty(value = "出版社", required = true)
    @NotNull(message = "出版社不能为空")
    private String press;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "简介")
    private String synopsis;

    @ApiModelProperty(value = "备注")
    private String remark;

}
